package model;

/**
 * 
 * 
 * @author ben
 *
 */
public class ModelLockedException extends Exception {

	private static final long serialVersionUID = 6596708588625821760L;
	private String customMessage = "";
	private boolean hasMessage = false;
	
	public ModelLockedException(String message) {
		this.setHasMessage(true);
		this.setCustomMessage(message);
	}

	public ModelLockedException() {
	}

	public String getCustomMessage() {
		return customMessage;
	}

	public void setCustomMessage(String customMessage) {
		this.customMessage = customMessage;
	}

	public boolean isHasMessage() {
		return hasMessage;
	}

	public void setHasMessage(boolean hasMessage) {
		this.hasMessage = hasMessage;
	}
	
}
